# uncompyle6 version 3.2.3
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.8 |Anaconda custom (64-bit)| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
# Embedded file name: helpers\licensing\erp\errors.py


class ErrorErp(Exception):
    pass


class ErrorErpFetch(ErrorErp):
    pass


class ErrorErpParsing(ErrorErp):
    pass


class ErrorLicense(ErrorErp):
    text = "Download cannot start with the information provided."
    code = 32
    http_response_code = 409


class ErrorLicenseNotFound(ErrorLicense):
    text = "Download cannot start with the information provided."
    code = 33
    http_response_code = 409


class ErrorLicenseDisabled(ErrorLicense):
    text = "Download cannot start with the information provided."
    code = 34
    http_response_code = 409


class ErrorLicenseNotActivated(ErrorLicense):
    text = "License not activated."
    code = 35
    http_response_code = 409


class ErrorLicenseExpired(ErrorLicense):
    text = "License expired."
    code = 36
    http_response_code = 409


class MacAddressLimitError(ErrorLicense):
    text = "Download cannot start with the information provided."
    code = 37
    http_response_code = 409


class InvalidProductCode(ErrorLicense):
    text = "Download cannot start with the information provided."
    code = 38
    http_response_code = 409


class ErrorLicenseBlackListed(ErrorLicense):
    text = "Download cannot start with the information provided."
    code = 39
    http_response_code = 409


def enum(name, *sequential, **named):
    values = dict(zip(sequential, range(len(sequential))), **named)
    return type(str(name), (), values)
